<?xml version="1.0" encoding="utf-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" loadImage="LoadImage" onLoad="Load">
  <ribbon>
    <tabs>
      <tab idMso="TabAddIns" label="Xaml">
        <group id="XamlType" label="XAML Type">
          <toggleButton id="WPFButton" image="WPF" onAction="WPFButton_Click" description="Create a WPF FlowDocument." label="WPF FlowDocument" size="large" />
          <toggleButton id="SilverlightButton" image="Silverlight" onAction="SilverlightButton_Click" description="Create a Silverlight RichTextbox" label="Silverlight RichTextBox" size="large" />
        </group>
        <group id="OptionsGroup" label="WPF Layout Options">
          <editBox id="PagePadding" onChange="PagePadding_TextChanged" label="Page Padding" showImage="false" getText="GetPagePadding"  />
          <checkBox id="AutoPagePadding" onAction="AutoPagePadding_Click" label="Auto Page Padding" />
          <checkBox id="AutoHyphenation" screentip="Automatic Word Hyphenation" supertip="The automatic word hyphenation feature enables text to automatically break and hyphenate words, based on current layout conditions. This enables long words to begin on one line and continue on this next, and tends to achieve a more even distribution of white space in justified text. Words are broken and hyphenated according to standard grammar rules." label="Auto Hyphenation" />
          <dropDown id="PagePaddingUnits" screentip="Page Padding Units" label="." showImage="false">
            <item id="__id89" label="pixels" />
            <item id="__id90" label="inches" />
          </dropDown>
          <checkBox id="OptimalParagraph" screentip="Optimal Paragraph Layout" supertip="Optimal paragraph layout is a feature that lays out paragraphs in the FlowDocument such that white space is distributed as evenly as possible. Theoretically, this provides an optimized reading experience by eliminating distracting white space that can occur with line-justified text and other layout routines. Optimal paragraph layout is particularly effective when coupled with automatic hyphenation." label="Optimal Paragraph" />
        </group>
        <group id="ColumnWidthGroup" label="WPF Column Width">
          <editBox id="ColumnWidth" onChange="ColumnWidth_TextChanged" screentip="Set the column width in pixels" label="Column Width" showImage="false" />
          <checkBox id="AutomaticWidthColumns" onAction="AutomaticWidthColumns_Click" label="Auto Width" />
          <checkBox id="FlexibleWidthColumns" label="Flexible Width" />
          <dropDown id="ColumnWidthUnits" screentip="Column Width Units" label="." showImage="false">
            <item id="__id91" label="pixels" />
            <item id="__id92" label="inches" />
            <item id="__id93" label="cm" />
            <item id="__id94" label="points" />
          </dropDown>
        </group>
        <group id="DropShadowGroup" label="WPF Drop Shadows">
          <editBox id="DropShadowSoftness" sizeString="100" onChange="DropShadowSoftness_TextChanged" keytip="DSS" screentip="0=Hard Shadow, 100=Soft Shadow" supertip="For graphics in WPF, elements can have a drop shadow.  Change the softness from 0 (hard shadow) to 100 (soft shadow)." label="Softness" showImage="false" />
          <editBox id="DropShadowNoise" sizeString="100" onChange="DropShadowNoise_TextChanged" screentip="0=not grainy, 100=very grainy" supertip="Specifies how grainy the WPF drop shadow is. " label="Noise     " showImage="false" />
        </group>
        <group id="PreviewGroup" label="Preview">
          <button id="Preview" onAction="Preview_Click" screentip="Preview the Layout and Column Width Options" label="Preview" size="large" />
          <button id="About" onAction="About_Click" screentip="About this solution" label="About" />
        </group>
      </tab>
    </tabs>
  </ribbon>
  <backstage>
    <tab idMso="TabShare">
      <firstColumn>
        <!--<group id="Test" label="Test" insertAfterMso="FileTypes">
          <primaryItem>
            <button label="TestItem" id="TestButton"/>
          </primaryItem>
        </group>-->
        <taskFormGroup idMso="GroupShare">
          <category idMso="FileTypes">
            <task id="XamlTask" label="XAML Document" description="XAML Tasks">
              <group id="XamlGroup" helperText="These are the various XAML formats that can be created.">
                <topItems>
                  <button id="FileSaveAsFlowDocument" onAction="SaveAsFlowDocument"
                          supertip="This will save a copy of the document as WPF 4 XAML."
                          label="Save As WPF 4 Xaml Document" screentip="WPF FlowDocument"/>
                  <button id="FileSaveAsSilverlightStackPanel" onAction="SaveAsSL4StackPanel"
                          supertip="This will save a copy of the document as Silverlight 5 XAML using a StackPanel and TextBlock controls."
                          label="Save As Silverlight StackPanel Xaml Document" screentip="Silverlight StackPanel" />
                  <button id="FileSaveAsSilverlightRichTextBox" onAction="SaveAsSL4RichTextBox"
                          supertip="This will save a copy of the document as Silverlight 5 XAML using the RichTextBox control."
                          label="Save As Silverlight RichTextBox XAML Document" screentip="Silverlight RichTextBox" />
                </topItems>
              </group>
            </task>
          </category>
        </taskFormGroup>
      </firstColumn>
    </tab>
  </backstage>
</customUI>